<?php
$query = getManagementTeam();
$i = 0;
while($fetch = MySQL_Fetch_Array($query)){
	$jmeno = $fetch["JMENO"];
	$funkce = $fetch["FUNKCE"];
	$foto = $fetch["FOTO"];
	
	echo "<div class='left-column'>";
		
		echo "<div class='detail-box-left'>";
		if($foto == "") echo "foto není k dispozici";
		else echo "<img src='./img/lide/$foto' alt='foto'>";
		echo "</div>";
	
		echo "<div class='detail-box-right'>";
		echo "<b>$jmeno</b><br><span style='font-size: 11px;'><i>$funkce</i></span>";
		echo "</div>";
	
		echo "<div class='correct'></div>";

	echo "</div>";
	
	if($i % 2 == 1) {
		echo "<div class='correct'></div>";
	}
	
	$i++;
}
?>